<form id="pagerForm" method="post" action="">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type="hidden" name="keywords" value="{$keywords}" />
	<input type="hidden" name="sfield" value="{$sfield}" />
	<input type="hidden" name="platform" value="SMW01" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="m" value="{$module_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<ul class="searchContent">
			<li style="width:210px;">
				<label style="width:60px;">关键字：</label>
				<input type="text" class="autoinput" name="keywords" value="{$keywords}" style="width:120px;"/>
			</li>
			<li style="width:60px;">
			<select name="sfield" class="combox">
				<option value="all" {if $sfied=='all'}selected="selected"{/if}>全部</option>
				<option value="username" {if $sfied=='username'}selected="selected"{/if}>用户名</option>
				<option value="userid" {if $sfied=='userid'}selected="selected"{/if}>用户ID</option>
				<option value="id" {if $sfied=='id'}selected="selected"{/if}>ID</option>
				<option value="sn" {if $sfied=='sn'}selected="selected"{/if}>订单编号</option>
			</select>
			<input type="hidden" name="sfield_name" value="id,userid,sn" />
			</li>
			<li>
				<select name="sel_status" class="combox">
					<option value="ALL" {if $sel_status=='ALL'||empty($sel_status)}selected="selected"{/if}>全部订单状态</option>
<volist name="status" id="st">
					<option value="{$key}" {if $sel_status==(string)$key}selected="selected"{/if}>{$st}</option>
</volist>					
				</select>
			</li>
			<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
			<div class="buttonActive"><div class="buttonContent"><button type="button" onclick="navTab.reload();">刷新 </button></div></div>
		</ul>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="{:U('Order/add_msg')}&id={sid_dv}" target="dialog" width="580" height="400" rel="Order_add_msg" warn="请选择一个笔订单"><span>添加备注</span></a></li>
			<li><a class="icon" href="{:U('Order/show_msg')}&id={sid_dv}" target="dialog" width="580" height="350" rel="Order_show_msg" warn="请选择一个笔订单"><span>查看备注</span></a></li>
			<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印页面</span></a></li>
		</ul>
	</div>
	<div id="w_list_print">
	<table class="list" width="98%" targetType="navTab" layoutH="96">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
				<th width="60" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>编号</th>
				<th width="150" orderField="sn" {if $orderField=='sn'}class="{$orderDirection}"{/if}>SN</th>
				<th width="100" orderField="userid" {if $orderField=='userid'}class="{$orderDirection}"{/if}>用户</th>
				<th width="100" orderField="amount" {if $orderField=='amount'}class="{$orderDirection}"{/if}>金额</th>
				<th width="200" orderField="status" {if $orderField=='status'}class="{$orderDirection}"{/if}>状态</th>
				<th width="150" orderField="add_time" {if $orderField=='add_time'}class="{$orderDirection}"{/if}>创建时间</th>
				<th width="120">操作</th>
			</tr>
		</thead>
		<tbody>
<volist name="list" id="vo">
			<tr target="sid_dv" rel="{$vo['id']}">
				<td><input name="ids[]" value="{$vo['id']}" type="checkbox"></td>
				<td>{$vo['id']}</td>
				<td><a title="{$vo['sn']} 订单查看" target="dialog" width="780" height="650" rel="Order_detail_{$vo['id']}" href="{:U('Order/detail',array('id'=>$vo['id']))}">{$vo['sn']}</a></td>
				<td>{$vo['userid']}</td>
				<td>{$vo['amount']/100|number_format=###,2,'.',''}</td>
				<td>{$status[$vo['status']]} | {$pay_status[$vo['pay_status']]} | {$shipping_status[$vo['shipping_status']]}</td>
				<td>{if $vo['add_time']=='0'}-{else}{$vo['add_time']|date="Y-m-d H:i:s",###}{/if}</td>
				<td>
					<a title="{$vo['sn']} 查看" target="dialog" width="580" height="450" rel="Order_detail_{$vo['id']}" href="{:U('Order/detail',array('id'=>$vo['id']))}" class="btnInfo">查看</a>
					
				</td>
			</tr>
</volist>
		</tbody>
	</table>
	</div>
<include file="Index:pages" />
</div>
